#!/usr/bin/env python
#-------------------------------------------------------------------------------
# Copyright (c) 2008 Andrew Coleman under the MIT License
# See COPYING at the root directory of this project.
#-------------------------------------------------------------------------------
# Standard Modules
import sqlite3
import os

_DatabaseTypes = (
    "sqlite",
    )

#----------------------------------------------------------------------
def Connect(DatabaseType, DatabaseFile=""):
    """Initiate a database connection"""
    if DbType in _DatabaseTypes:
        if DatabaseType == "sqlite":
            return sqlite3.connect(DatabaseFile)